<?php

class RpcScript extends ScriptBase {
	public $rpc;

	public function __construct() {
		$this->rpc = n_api('rpc');
	}

	public function test() {
		$stime = microtime(true);

		$arr = [
			'http://10.11.161.41/1.php',
			'http://10.11.161.41/2.php',
			// 'http://10.11.161.41/3.php',
			// 'http://10.11.161.41/4.php',
		];

		$xx = $this->rpc->callGet($arr);
		var_dump($xx);

		$etime = microtime(true);

		echo ($etime - $stime) * 1000 . "\n";
	}
}